package dados;


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConectaBD {
	
	public static Connection getConectacao() 
	throws SQLException 
	{
		try {
			Class.forName("com.mysql.jdbc.Driver");
			return DriverManager.getConnection("jdbc:mysql://localhost/sigconfex", "root","123456");	
			}
		
		catch (ClassNotFoundException e) 
		{
			throw new SQLException(e.getMessage());
		}
	}
	
}
